package com.ruoyi.merchant.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.merchant.service.MerchantService;
import com.ruoyi.system.domain.SysMerchantInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author X
 * @version 1.0
 * @ClassName MerchantController
 * @description
 * @date 2020/11/10
 **/
@RestController
@RequestMapping("/merchant")
public class MerchantController {

    @Autowired
    private MerchantService merchantService;

    /***
     * 获取商家信息
     * @return
     */
    @GetMapping("/merchantInfo")
    public AjaxResult getMerchantInfo() {
        SysMerchantInfo sysMerchantInfo = merchantService.getMerchantInfo();
        return AjaxResult.success(sysMerchantInfo);
    }
}
